<template>
  <div class="page-header">
    <!-- 头部区域 -->
    <i class="iconfont icon-bilibili" @click="$router.push('/').catch(err => {})"></i>
    <i class="iconfont icon-search"></i>
    <img :src="model.avatar" class="avatar" alt="" @click="$router.push('/userinfo').catch(err =>{})">
    <a href="#" class="remen" v-if="isVideo">热门</a>
    <a>下载 App</a>
  </div>
</template>

<script>
export default {
  props: ['model', 'isVideo'],
  data () {
    return {}
  }
}
</script>

<style lang="scss">
.page-header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  line-height: 40px;
  background-color: #fff;
  .icon-bilibili {
    flex: 1;
    color: #fb7299;
    font-size: 1.8rem;
    margin-left: 15px;
  }
  .icon-search {
    color: #ccc;
    font-size: 1.1rem;
    margin-right: 20px;
  }
  .avatar {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    margin-right: 10px;
  }
  a {
    display: inline-block;
    height: 15px;
    border: none;
    background-color: #fb7299;
    color: white;
    font-size: 0.7rem;
    line-height: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 8px;
    &.remen {
      background-color: #fff;
      color: #fb7299;
      border: 1px solid #fb7299;
    }
  }
}
</style>
